package cn.juni.service;

import cn.juni.pojo.Permission;
import cn.juni.pojo.Role;

import java.util.List;

/**
 * @author Juni
 * @date 2021/2/26
 */
public interface IRoleService {

    public List<Role> findAllRoles(Integer pageNum,Integer pageSize);

    public int insertRole(Role role);

    public Role findRole(String id);

    public List<Permission> findOtherPermission(String roleId);

    public void inserRolePermission(String roleId,String[] ids);
}
